﻿@*
    表单脚
*@

@using XCode.Configuration;
@using XCode.Membership;
@using XCode;

@{
    var entity = Model as IEntity;
    var isNew = entity.IsNullKey;
}

<div class="card-footer d-flex justify-content-end py-6">
    <button type="submit" class="btn btn-sm btn-outline btn-outline-primary align-self-center me-3">
        <i class="fas fa-@(isNew ? "plus" : "save") fs-2" style="margin-top: -1px;"></i>
        <span class="kt-hidden-mobile">@(isNew ? "保 存" : "更 新")</span>
    </button>
    <a href="@Url.Action("Index")" class="btn btn-sm btn-outline btn-outline-dashed btn-outline-default">
        <i class="fas fa-reply fs-2"></i>
        <span class="kt-hidden-mobile">返 回</span>
    </a>
</div>